package com.work.framework.pojo;

import io.swagger.annotations.Api;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 竞拍表
 */
public class Auction implements Serializable {

  private Integer aid;        //竞拍编号（主键）
  private Integer gid;        //商品编号（商品表主键）
  private BigDecimal cash;    //押金
  private BigDecimal price;   //价格
  private Integer status;     //状态
  private String created;     //创建时间
  private String start;       //开始时间
  private String stop;        //结束时间
  private Integer time;       //竞拍场次
  private Integer valid;      //流拍 0.流派无效 1.有效
  private Integer flage;      //软删除
  private BigDecimal upward;  //加价幅度

  public BigDecimal getCash() {
    return cash;
  }

  public void setCash(double cash) {
    this.cash = new BigDecimal(cash);
  }

  public Integer getAid() {
    return aid;
  }

  public void setAid(Integer aid) {
    this.aid = aid;
  }


  public Integer getGid() {
    return gid;
  }

  public void setGid(Integer gid) {
    this.gid = gid;
  }


  public BigDecimal getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = new BigDecimal(price);
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public String getCreated() {
    return created;
  }

  public void setCreated(String created) {
    this.created = created;
  }


  public String getStart() {
    return start;
  }

  public void setStart(String start) {
    this.start = start;
  }


  public String getStop() {
    return stop;
  }

  public void setStop(String stop) {
    this.stop = stop;
  }


  public Integer getTime() {
    return time;
  }

  public void setTime(Integer time) {
    this.time = time;
  }


  public Integer getValid() {
    return valid;
  }

  public void setValid(Integer valid) {
    this.valid = valid;
  }


  public Integer getFlage() {
    return flage;
  }

  public void setFlage(Integer flage) {
    this.flage = flage;
  }


  public BigDecimal getUpward() {
    return upward;
  }

  public void setUpward(double upward) {
    this.upward = new BigDecimal(upward);
  }


  @Override
  public String toString() {
    return "Auction{" +
            "aid=" + aid +
            ", gid=" + gid +
            ", cash=" + cash +
            ", price=" + price +
            ", status=" + status +
            ", created='" + created + '\'' +
            ", start='" + start + '\'' +
            ", stop='" + stop + '\'' +
            ", time=" + time +
            ", valid=" + valid +
            ", flage=" + flage +
            ", upward=" + upward +
            '}';
  }
}
